package com.pan.admin.module.crm.service.impl;

import com.pan.admin.module.crm.dao.CrmStatisticDao;
import com.pan.admin.module.crm.entity.po.CrmStatisticDeptPO;
import com.pan.admin.module.crm.entity.po.CrmStatisticUserPO;
import com.pan.admin.module.crm.entity.qo.CrmStatisticDeptQO;
import com.pan.admin.module.crm.entity.qo.CrmStatisticUserQO;
import com.pan.admin.module.crm.service.CrmStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CrmStatisticServiceImpl implements CrmStatisticService {

    @Autowired
    private CrmStatisticDao crmStatisticDao;

    @Override
    @Transactional(readOnly = true)
    public List<CrmStatisticUserPO> userStatistic(CrmStatisticUserQO crmStatisticUserQO) {
        return crmStatisticDao.userStatistic(crmStatisticUserQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<CrmStatisticDeptPO> deptStatistic(CrmStatisticDeptQO crmStatisticDeptQO) {
        return crmStatisticDao.deptStatistic(crmStatisticDeptQO);
    }


}
